package per.turtle.common.mq.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * mq交换机类型枚举
 *
 * @author yuj
 */
@AllArgsConstructor
public enum ExchangeTypeEnum {

    /**
     * 交换机类型
     */
    FANOUT("fanout", "发送给所有队列"), DIRECT("direct", "发送给路由键匹配的队列(默认)"), TOPIC("topic", "发送给主题匹配的队列"), HEADERS("headers", "允许你匹配AMQP消息的header而非路由键（性能较差）");

    @Getter
    private final String code;

    @Getter
    private final String desc;

}
